home *** CD-ROM | disk | FTP | other *** search
/ Enigma Amiga Life 112 / EnigmaAmiga112CD.iso / dalla rivista / awnpipe / awnp / awnp-docs / getfile.doc < prev    next >
Text File  |  2000-05-17  |  5KB  |  248 lines

  1. There are actually two file requesters available in AWNPipe. The ClassAct/Reaction getfile.gadget, and the ASL file requester. Only the getfile.gadget can be displayed in a gui. Both can be opened under your control to present the user with a file requester. The details for the ASL requester are at the end of this file.
  2.  
  3.   *** GETFILE GADGET CLASS ***
  4.  
  5. GetFile gadget event.
  6. -------------------------
  7.  
  8. 'gadget GID  success ["filename" ["filename" ...]]'
  9.  
  10.  Success=0 user selected no file or canceled.
  11.  Success!=0 user selected a file.
  12. Filenames are fully qualified with path.
  13.  
  14. GetFile gadget parameters.
  15. -------------------------
  16.  
  17. font=GID
  18.  
  19. This sets the font for the gadget. The GID points to an ALREADY defined text attribute.
  20.  
  21.  
  22. readonly (ro)
  23.  
  24.  This gadget is read only.
  25.  
  26. disable=number (dis=)
  27.  
  28.  The gadget is enabled if number = 0 , disabled if number != 0. Defaults to enabled.
  29.  
  30. gadgettext="file requester title" (gt=)
  31.  
  32.  Set the title of the file requester.
  33.  
  34. pattern="pattern" (pat=)
  35.  
  36.  Set and Enable pattern matching in the file.
  37.  
  38. multi  (m)
  39.  
  40.  Allow multi selection in the file requester. (does not seem to work)
  41.  
  42. save
  43.  
  44.  This is a save requester.
  45.  
  46. drawers (dr)
  47.  
  48.  Only show and allow selections of drawers.
  49.  
  50. icons (i)
  51.  
  52.  Do NOT show .info files.
  53.  
  54. filename="path:filename" (fn=)
  55.  
  56.  Set the filename and directory for the file requester. It must end in a '/' for drawer only file requesters
  57.  
  58. Wide=num
  59. High=num
  60.  
  61.  Set the size of the requester when opened.
  62.  
  63. unattached    (ua)
  64.  
  65.  This file requester is not attached to the CA window. It may still be activated in the modify conversation.
  66.  
  67. minwidth=number (minw=)
  68.  
  69.  Set the minimum width for this gadget
  70.  
  71. minheight=number (minh=)
  72.  
  73.  Set the minimum height for this gadget
  74.  
  75. weightedwidth=number (weiw=)
  76.  
  77.  Set the weighted width for this gadget
  78.  
  79. weightedheight=number (weih=)
  80.  
  81.  Set the weighted height for this gadget
  82.  
  83. nominalsize (noms)
  84.  
  85.  Set this gadget to its nominal size.
  86.  
  87. tags="tags|data[|tag|data...]|0
  88.  
  89.  A list of tag and value pairs in HEX. Do not forget the trailing null !
  90.  
  91. childlabel    (chl)
  92. childlabelr   (chlr)
  93.  
  94.  Use the previously defined image as a childlabel for this gadget. Display the childlabel to the right or left of the gadget.
  95.  
  96. replace=GID
  97.  
  98.  Use this gadget to replace an existing gadget specified by GID.
  99.  
  100. Definition Reply
  101. -----------------
  102.  
  103.  When the gadget creation is successful the pipe replies
  104. with
  105.  
  106. 'ok GID'
  107.  
  108. GetFile gadget modify parameters.
  109. -------------------------
  110.  
  111. selected=number (sel=)
  112.  
  113. THIS ONLY WORKS FOR UNATTACHED GETFILE GADGETS.
  114. Number is ignored but must be given. This opens the file requester and the selected files are returned rather than a simple ok.
  115. You should not use other modify instructions on the same line as 'selected'.
  116.  
  117. disable=number (dis=)
  118.  
  119.  The gadget is enabled if number = 0 , disabled if number != 0.
  120.  
  121. save=number
  122.  
  123.  If number=0 this is NOT a save requester. If number~=0 this is a save requester.
  124.  
  125. filename="path:filename" (fn=)
  126.  
  127.  Set the filename and directory for the file requester.
  128.  
  129. gadgettext="title" (gt=)
  130.  
  131.  Set the file requesters title.
  132.  
  133.  
  134.   *** GETFILE ASL ***
  135.  
  136. The ASL requester does not send events.
  137.  
  138. GetFile ASL parameters.
  139. -------------------------
  140.  
  141. ASL
  142.  
  143.   This tells AWNP you want to define an ASL file requester.
  144.  
  145. font=GID
  146.  
  147. This sets the font for the gadget. The GID points to an ALREADY defined text attribute.
  148.  
  149.  
  150. gadgettext="file requester title" (gt=)
  151.  
  152.  Set the title of the file requester.
  153.  
  154. pattern="pattern" (pat=)
  155.  
  156.  Set and Enable pattern matching in the file.
  157.  
  158. multi  (m)
  159.  
  160.  Allow multi selection in the file requester. (does not seem to work)
  161.  
  162. save
  163.  
  164.  This is a save requester.
  165.  
  166. drawers (dr)
  167.  
  168.  Only show and allow selections of drawers.
  169.  
  170. icons (i)
  171.  
  172.  Do NOT show .info files.
  173.  
  174. filename="path:filename" (fn=)
  175.  
  176.  Set the filename and directory for the file requester. It must end in a '/' for drawer only file requesters
  177.  
  178. Wide=num
  179. High=num
  180.  
  181.  Set the size of the requester when opened.
  182.  
  183. top=num
  184. left=num
  185.  
  186.  Set the position of the requester when it opens.
  187.  
  188. postx="positive text"
  189.  
  190.  Set the text for the positive choice in the file requester. Defaults to OK.
  191.  
  192. negtx="negative text"
  193.  
  194.  Set the text for the positive choice in the file requester. Defaults to Cancel
  195.  
  196. Definition Reply
  197. -----------------
  198.  
  199.  When the gadget creation is successful the pipe replies
  200. with
  201.  
  202. 'ok GID'
  203.  
  204. GetFile ASL modify parameters.
  205. -------------------------
  206.  
  207.  You can only modify the ASL getfile requester when opening it. Unless the selected keyword is present the modify line is ignored.
  208.  
  209.  
  210. selected=number (sel=)
  211.  
  212. Number is ignored but must be given. This opens the file requester and you get returned the following line rather than a simple ok.
  213.  
  214. SUCCESS "path:drawer/filename" "path2:drawer2/filename2"  ...
  215.  
  216. SUCCESS=0 if the user aborted the file requester without making a selection. SUCCESS !=0 if the user selected a file, each file name is quoted and all are on a single line.
  217.  
  218. save=number
  219.  
  220.  If number=0 this is NOT a save requester. If number~=0 this is a save requester.
  221.  
  222. filename="path:filename" (fn=)
  223.  
  224.  Set the filename and directory for the file requester.
  225.  
  226. gadgettext="title" (gt=)
  227.  
  228.  Set the file requesters title.
  229.  
  230. Wide=num
  231. High=num
  232.  
  233.  Set the size of the requester when opened.
  234.  
  235. top=num
  236. left=num
  237.  
  238.  Set the position of the requester when it opens.
  239.  
  240. postx="positive text"
  241.  
  242.  Set the text for the positive choice in the file requester. Defaults to OK.
  243.  
  244. negtx="negative text"
  245.  
  246.  Set the text for the positive choice in the file requester. Defaults to Cancel
  247.  
  248.